<?php


namespace Modules\Admin\Http\Controllers\Authorization\User;


use Modules\Common\Models\AdminUser;
use Modules\Common\Util\Api;

class UpdatePassword
{
    /**
     * @Route(path=/api/admin/authorization/user/password method=put)
     */
    public function index()
    {
        Api::validate( ['id' => 'integer']);

        AdminUser::safeUpdateWithRequestParams(['password']);

        return Api::success();
    }

}
